package c.i.b.a;

import android.content.Context;

public class b {
    public static int a = 504;
    public static String b = "";
    public static String c = "";
    public static Context d;

    /* JADX WARNING: Missing exception handler attribute for start block: B:12:0x0034 */
    /* JADX WARNING: Can't wrap try/catch for region: R(12:0|1|2|3|(3:5|6|(3:8|14|16))|9|10|11|12|13|14|16) */
    public static java.lang.String a() {
        /*
        r0 = "";
        r1 = new org.json.JSONObject;	 Catch:{ all -> 0x004b }
        r1.<init>();	 Catch:{ all -> 0x004b }
        r2 = "os";
        r3 = "Android";
        r1.put(r2, r3);	 Catch:{ all -> 0x004b }
        r2 = "version";
        r3 = "1.0.5";
        r1.put(r2, r3);	 Catch:{ all -> 0x004b }
        r2 = c;	 Catch:{ all -> 0x004b }
        r3 = "token_id";
        if (r2 == 0) goto L_0x0027;
    L_0x001b:
        r2 = r2.length();	 Catch:{ all -> 0x004b }
        if (r2 <= 0) goto L_0x0027;
    L_0x0021:
        r2 = c;	 Catch:{ all -> 0x004b }
        r1.put(r3, r2);	 Catch:{ all -> 0x004b }
        goto L_0x0037;
    L_0x0027:
        r2 = 303; // 0x12f float:4.25E-43 double:1.497E-321;
        r4 = d;	 Catch:{ all -> 0x0034 }
        r5 = 0;
        r2 = com.pgl.sys.ces.a.meta(r2, r4, r5);	 Catch:{ all -> 0x0034 }
        r1.put(r3, r2);	 Catch:{ all -> 0x0034 }
        goto L_0x0037;
    L_0x0034:
        r1.put(r3, r0);	 Catch:{ all -> 0x004b }
    L_0x0037:
        r2 = "code";
        r3 = a;	 Catch:{ all -> 0x004b }
        r1.put(r2, r3);	 Catch:{ all -> 0x004b }
        r1 = r1.toString();	 Catch:{ all -> 0x004b }
        r1 = r1.getBytes();	 Catch:{ all -> 0x004b }
        r2 = 2;
        r0 = android.util.Base64.encodeToString(r1, r2);	 Catch:{ all -> 0x004b }
    L_0x004b:
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.i.b.a.b.a():java.lang.String");
    }
}
